My conversion tool is also similar to the above but only thing it doesn't sound very generic(esp. getting field names and lengths).
How do we make it more generic
i) by not passing too many parameters and
ii) satisfy the condition that "the conversion tool should be working for projects in future?"