Get rid of these silly globally scoped variables.
Turn apt into a parameterized class and use defaults from apt::params