small refactor to reduce duplicate calls to pybot
small refactor to reduce duplicate calls to pybot


Former-commit-id: 3e1c4e75095a9fd39208935dd8aebff439fe00c4
InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service,InnovateUKGitHub/innovation-funding-service