Merge "Renaming reference mode context calculation function."