Very small refactoring in similarity service