Implement context processor decorator #4774