Create functions specialFormatSP() and specialFormatUF()

Rearrange order of code blocks for makeGroupsArray() and makeDataTables() for readability purposes, too.