Fix code style
Refactored __call() method due to high complexity