Some subcommands of /execute can be independent commands.
For example: /execute as @e at @s if block ~ ~-1 ~ red_wool run kill @s
Can be simplified as:
/as @e at @s if block ~ ~-1 ~ red_wool kill @s
You could add a convenient command to replace "as xxx at @s". "/kill"'s parameter should be able to leave out.