Clean up and make it compile for Elm 0.13.