Added item factory class to help with layout parsing