Revert "Move to enum."

This reverts commit 95e51c0507079fdf1320d24db86b5f2103bbda48.