Refactored create required objects hook to use a utility function rather than an
anonymous one. Added install hooks to the collation module.