Put common physics code into separate namespace