Add factory method to helpers module