Moved block observation code into NSObject category.