Refactoring tasks controller: move duplicated code to before filter.
Refactoring tasks controller: move duplicated code to before filter.

digitalnatives/jobsworth,ari/jobsworth,xuewenfei/jobsworth,xuewenfei/jobsworth,rafaspinola/jobsworth,rafaspinola/jobsworth,rafaspinola/jobsworth,digitalnatives/jobsworth,xuewenfei/jobsworth,xuewenfei/jobsworth,digitalnatives/jobsworth,webstream-io/jobsworth,ari/jobsworth,ari/jobsworth,webstream-io/jobsworth,rafaspinola/jobsworth,ari/jobsworth,webstream-io/jobsworth,digitalnatives/jobsworth,digitalnatives/jobsworth,webstream-io/jobsworth