Tableconvert more generic rework

Rework the plugin to have only one working function which is doing the replacement work. Still some work to be done, but should be some better approach as before.