Shift both userSchema and groupSchema out as independent file.