Reconstructing the Origins of the HemD-like fold