Add beforeFilter and afterFilter back as deprecated.