Split options into groups