Refactor urls out of task models