Refactor definition/context implementations to support circular messaging for remote procedure calls.