factored out some helper methods for the edit_space view to help with unit testing