Service registry functions will override already existing services with the same TypeKey inside of the block.