refactoring towards Application->Environment->EbEnvironment model structure