Refactor time-consuming test group initializers