Move the apply rule handler to the Service class.

Refs #5878