refactor(transformation): refactored tranformation handler and input checker based on query creation refactoring