unset repository variables if the value is nil