Reorganize http helper