Remove getReferrer method from Library, as it's only ever used in one place.