Little refactory on computed property setup

To better legibility the routine that makes the computed property setup
was abstracted in a specialized function with small and clear methods.