Refactoring SmogCalpha to handle more general Hamiltonians