Add asRepositorySpecFor: extension method on FileReference