Remove method used only by tests