Injecting the metadata library instance instead of the library.