Set up diminish package. Extract package installation and initialization into functions.