Core: simplify history clean

Fixes #30