This refactoring will be useful on future changes, where there will be a single application entry point that will execute the CLI or the GUI version depending on the environment. Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>