Consider reducing duplications between import files

As pointed out in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6945#note_17451695, there is currently a lot of duplication in the import files (controller, views, routese, etc.). We can and should improve this.