Refactors Apache recipe