Split handlers into incoming and outgoing and move into their own directory.