Revert "Merge pull request #593 from neojski/583-call-compact-callback-when-done"

This reverts commit 62887f91b824af30e2614b29c298750e88e834c2, reversing
changes made to 9113aca3feefa843cbc91626b5d81f4f14d32e3d.