Refactor adding key to authorized keys