Codegen: Duplicate definition of Status

Fixes #144 and two deprecations