Organise dependencies into packages