Remove dependency on profunctors