Less coupling in ResourceFactoryImpl and ResourceTransaction impl