Split the resource guard for easier management