Refactor Config.views