Start refactoring to work with joomla lovefactory components