remove hardcoded metadata_backend
Remove functionalities to get backend into its own function