Yes. This is the only way, to remove it from the test coverage.