refactor to ::{params,install,service} pattern + add rspec tests