Cleaned up the implementation of generated link mappings for site tree elements when replacing the default SilverStripe functionality.