Remove any reference to type in API controller