Dropped a wrong TODO about having similar functions exist.