moved resource pool definition to the facade