Use Stack class

Replace FormatGroupCollection with the native Stack class that I didn't
know about (!)