extract CF operations to a helper class. split prepare to docker prepare and CF prepare