loci: remove inheritance unions and header classes

Reviewer: @wilmo119

All known callers have been converted to the new API.