[relate] group_dim util moved to separate file