Only load RL modules when a <ref> tag is being used

Bug: 55684
Change-Id: I8f7528ef8468bf3fa1c901fd6dc67b5eebc0cbd6
Merge "Only load RL modules when a <ref> tag is being used"