[PATCH v3 1/3] riched20: Extract handling of VK_RETURN into a method