Remove Ref template which was undocumented, unused, and had a non-working implementation.
Merge pull request #2080 from AndrejMitrovic/DeadCode

Remove Ref template