Extracted code into alephant-support gem