Moved method to Utils class to clean helper class a little bit.