Move controller request parsing to a utility class