Refactoring of code to make classes less coupled (in order to facilitate
using the same components for more than one GUI).