Refactor and create silex aware console application