Removing trail pointers from layer boundaries (and thus layers)