pts-core: Don't pass by ref