d3drm: Reorder frame creation function to avoid forward declarations.