Some refactorings (extract constants, added applicationRunner, etc.)