Moved three layer gene model fun to base class