Refactor quarantine helper
What does this MR do?
Refactor quarantine helper by moving methods closer to where they are called.
This change follows the code style suggested in the book Clean Code, by Robert. C Martin.
Does this MR meet the acceptance criteria?
Conformity
Edited by Walmyr Lima e Silva Filho