Refactoring of tasks#show