extracted the enum to a different class