[base] Use parameterized constructor for 'entity'