Simplify Jenkins schema build check using helper functions
Simplify Jenkins schema build check using helper functions

The branch check for distinguishing between regular branch builds and
schema test builds has been extracted to the shared helper file, so
replace these checks with a call to the shared function.

alphagov/collections-publisher,alphagov/collections-publisher,alphagov/collections-publisher