Extract code from private repository and make it pluggable.
Take advantage of class-based generic views.