Introduced a simple transformation for removing unused locations.