Remove things unnecessary for mock build