Replace trait with object
require AuthenticationContext instead of AppConfig where applicable