Reorganize header file grouping functions by its purpose