Remove log4net (will be restored later). Cleaning and refactoring