removes code duplication in shared ground spec