Move result types out into their own file.