Split out SX utils into their own file