frontend: replace BaseBuildFormFactory with a function
I am addressing this TODO:
# TODO: Change this to just 'def get_build_form(...)'. The __new__
# hack confuses not only PyLint (on each calling place it claims
# that the return value is not callable. __new__ isn't supposed
# to return classes, but instances.