Refactored HasManyProxy to reduce method complexity.