refactor: extract module init

module init should be easy to find at one central point