Moved method to FileHelper