Refactor packages configurations.

This commit refs #60.