Move ruby- stripping into global methods.