Reducing size of ApiResponse class