change how `removable` is determined.

Addresses #8.

Not sure if this is the best way to do so, but it seems to work in practice, and passes all existing tests. Code line length is less, too.