Addressing reference issue when same base class is implemented more than once