Can't you use the enum everywhere and avoid this duplication?