moved resolveTypeAndCreateProxy to BehaviorDelegationRule, since it is
only used there.