Extract out helper functions for building a menu to manage the location property on a list of containers