Some refactoring on last_test_notifier.