rewrite RelatedObjectLookups.js