Remove redundant enum converting method