[CB-4119] remove dupe code
[CB-4131] Use relative require paths in Geolocation plugin.