Move objective functions into their own sub-package.