Here is an example of using My Blocks custom blocks to make your code more efficient to write and edit. See inside for more information via commented code.
You can check out my video tutorial on My Blocks on the official Scratch YouTube channel (ScratchTeam; look for the "Scratch My Blocks" video series) and find a link to written resources related to this topic in the video description.