Improving Mongo relationship key detection.