Minor refactoring in parse animals handler query