renderer/console: Migrate code