upgrade refactoring: MDL-17458 remove references to block_is_compatible, since Petr deleted that function.