Remove HEAD-related code where it's unused