[DEV-1739] Add self to middleware method argument list.