Andy refers to the horse's head in the bed scene. Dwight checking the restroom before the meeting is another reference: in the movie, Al Pacino's character, Michael, paranoid that he is going to be assassinated, enters the restroom to retrieve a hidden gun, he then uses to murder two men.