Consider reducing duplications between import files
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=16281)
</details>
<!--IssueSummary end-->
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.
issue