Refactor tasks to be in pullRequest model