Some utilities for dealing with layer connections