Only wrap functions in joins when they are functions