REFACTOR: Factor out compile recipes.