Genericizing argument processing.