Refactoring gmxBaseLayersManager.prototype.initDefaults