Remove duplicated code
[Fix #71] Find all available packages