Moved user context to endpoint module.