Move items building routines to own class

This refactoring makes parser handler code a bit easier to read.