Rationalize getExtendedBy implementation in GenericBuilder