Extract method declaration regexp for assert_method into a constant