Check handler.process and handler.render before using handler itself as renderer
Code cleanup