Refactor renderer module to 100 line limit