CPP : Separate reusable code of the View into a new base view class