po entry: extract format related code to Formatter