Removing global function as its conflicting with hamcrest