Clean up preceptor code