Refactored to use lodash's memoization for the amqp resolver