Refactor of Juibase and all dependant components.