Added 'removeShared' method to protocol and implementation injection