refactored Record Types to submodules