remove instance of enum that is declared twice