Move ContextVisitorAdapter to common module.