renderer: Migrate code