Move shortcut setup to dedicated function.