Refactoring configuration settings and added test code for doing the subcategory chooser with the component view for categories.