Add utility method to generate build

Adds a utility to generate a build, given a buildConfig and modifies the webhook controller to use the new method.
The method is only used at one call site in the codebase and has no behavior... just wondering if it justifies a new file and exported method.