[File Management] Refactor: Using the new Relation API to add RelationListeners.