Rewrite recipe and remove hardcoded parts.