Cleared the EXT_REFS code to make it more legible. Change-Id: I309c4e16fd305bcfa590d14f957a9598d23c7ee6