chore(context): Pull `elgg_*_context` functions' logic into a service