Refactor GenericFile#related_files