Less redundant code, introduced BaseRenderer class