That is like 3 steps more than it should be. There should be a global setting to tell apple to fuck off with their security bullshit.
sudo spctl --master-disable
Then choose "Anywhere" under "Allow apps from..." in the Security & Privacy preferences. You'll never be bothered again.