Some cleanup in the converter.

Signed-off-by: anuka <david.vas1@gmail.com>