Refactored init functions

Moved init functions and constants from the modules to the type
definition