Simplify rule creation and empty machine_id, backend_id field from rule only when machine was found