Split off preprocessing functions.