Refactor getTasksForCommunityWithSlugs

Moved it to the proper place (tasks api).