Remove useless helper function