Extract utility method 'bindProperties' to make it reusable.