Making illegal states unrepresentable