Refactored maec extension code layout.