Extract context flags into their own enum.