clean code with getservice