Refactor topics controller and model

Refactor: ```TopicsController``` refactoring to reduce code climate complexity.

:)