Clean up stately library