Refactor apps controller/views/specs.