Created reusable resource creation factory