Remove unneeded bits