There is no `head` specified for this formula, so all these `if build.head?` suffixed lines should be removed.