Re-write resource registration to be more concise