Pull parsing functions out.