Replace #reject(nil) with #compact