Reduce duplicate code in patch and post view methods
Both compose owner and seconds_to_lives are required and used in patch
and post view methods, which have same rule to validate and get default
value. Moving those code into dedicated method to avoid duplicate.
Signed-off-by: Chenxiong Qi <cqi@redhat.com>