Improve code in utils module: delete force type transformation.
Make some style solutions.