This should be moved to a more proper place in the hierarchy (e.g. ModuleImpl) after InternalModule class has been properly unified with the normal Module class.
Currently this class is based on EntityOwner somewhat artificially. Instead the InternalModule class needs to be properly unified with the normal Module classes.