Refactor Salt installation method to a more readable one.