populateMenu needs to be a bit more extensible for better re-use. Allow plugins to define the order of groups and don't hardcode it in the function.
I don't think this task is needed anymore.