function removeKeyFromObject(key, obj) {
	if (Object.prototype.hasOwnProperty.call(obj, key)) {
		obj = { ...obj };
		delete obj[key];
	}
	return Object.keys(obj).length ? obj : undefined;
}
Returns a clone of the given object without a certain key.
	Returns undefined if resulting object would be empty.
	@private